#ifndef COMPLEXINTERFACE_H
#define COMPLEXINTERFACE_H

#include <QtPlugin>
#include <QWidget>

class ComplexInterface {
public:
    virtual ~ComplexInterface() = default;

    virtual QWidget* createWidget(
        const QString& type,          // 风向
        const QString& level,         // 风力
        const QString& humidity,      // 湿度
        const QString& pm25,          // PM2.5值
        const QString& quality,       // 空气质量
        const QString& tips           // 小建议
        ) = 0;
};

Q_DECLARE_INTERFACE(ComplexInterface, "com.example.ComplexInterface/1.0")

#endif // COMPLEXINTERFACE_H
